import { combineReducers } from 'redux';
// import feedback from './feedback';
import auth from './auth';
import main from './main';

function user(state = {}, action) {
  if (action.type === '#profile') {
    return { ...action.payload }
  }
  if(action.type === '#unauth') {
    return {}
  }
  return state;
}


const rootReducer = combineReducers({ auth, main, user });

export default rootReducer;
